php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#247128 - 05/20/03 07:56 PM Beta-[6.0-6.1-6.2-6.3] Generic Threads Page
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Mod Name / Version: Generic Threads Page <br /> <br />Description: This is a very basic - generic page which uses threads headers and footers, stylesheet - table wrappers etc.... and allows you to paste your own HTML in the file. <br /> <br />Working Under: UBB.Threads 6.0-6.1-6.2-6.3 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: none <br /> <br />Author(s): JoshPet <br /> <br />Date: 05/20/03 <br /> <br />Credits: I think Wrath posted the first "basic page" here long ago. <br /> <br />Files Altered: none <br /> <br />New Files: generic.php (you can rename this to anything you like - and duplicate it for as many pages as you wish.) <br /> <br />Database Altered: none <br /> <br />Info/Instructions: This is really basic - doesn't use templates. But useful if you wish to quickly make a page of your own, look like UBB.Threads. <br /> <br />Instructions: Edit the page title and path to your UBB Threads install at the top of the generic.php file. Place anywhere on your website. Duplicate and rename the page as needed. <br />Paste your HTML where indicated - near the center of the file. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />If you would prefer a templated version - it's attached here. <img src="/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files. <br /> <br />


Attachments
81311-generic.php.zip (216 downloads)



Edited by JoshPet (05/20/03 08:36 PM)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247129 - 05/20/03 08:06 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
That's pretty nifty Josh! Will it work with the sidbarpal?

Top
#247130 - 05/20/03 08:08 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: eslmix]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yup. <img src="/forum/images/graemlins/smile.gif" alt="" /> It will - as it uses the threads headers and footers. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247131 - 05/20/03 08:10 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
<img src="/forum/images/graemlins/yay.gif" alt="" /> <img src="/forum/images/graemlins/waytogo.gif" alt="" />

Top
#247132 - 05/20/03 08:15 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Hmm maybe I should post the one that uses a template system <img src="/forum/images/graemlins/wink.gif" alt="" /> <br /> <br />Nice work Mr. Banana. I think there are about 5 version lying around this forum for this one in various stages of development.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247133 - 05/20/03 08:36 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK -<br /><br />Here is a templated version.<br /><br />Instructions: Edit the path and page title at the top of the php file. Rename the file and the template to the name of your choice. <br /><br />In the php file - where it requires the .tmpl file - be sure to edit the name if you've renamed it. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Put your HTML into the tmpl file. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />The php file can be anywhere on your website - the template should be in the /ubbthreads/templates/default directory. <img src="/forum/images/graemlins/smile.gif" alt="" />


Attachments
81320-GenericPageTemplated.zip (159 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247134 - 05/20/03 09:12 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
LOL I knew if I said I would post the template version you would do it <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247135 - 05/20/03 09:13 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
You must know the Jedi Mind Trick!!! <img src="/forum/images/graemlins/bigshock.gif" alt="" />

Top
#247136 - 05/20/03 09:18 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL<br />Wasn't trying to outdo anybody - it just was real quick and simple. <img src="/forum/images/graemlins/smile.gif" alt="" /> Might as well have it available for people who want that as well. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247137 - 05/20/03 09:21 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: eslmix]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Nah Back when Josh first wrote this I put it into a template cause I was big on integration and keeping all my eggs in a row. I knew if I meantioned something Josh would post the template one. Threads moved into using templated systems and so should our hacks.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247138 - 05/20/03 09:26 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: sf49rminer]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Hmmm.... I really should post that hack for fully integrating CafePress into Threads.....<br /><br />(waits for Josh to post it first) <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#247139 - 05/20/03 09:40 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: eslmix]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
LOL You can do that. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247140 - 05/21/03 02:30 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: eslmix]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
[]AKD96 said:<br />Hmmm.... I really should post that hack for fully integrating CafePress into Threads.....<br /><br />(waits for Josh to post it first) <img src="/forum/images/graemlins/wink.gif" alt="" /> [/]<br /><br />You are not strong enough in the force young padwa to use the scriptor mind trick on a code master like JoshPet... <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#247141 - 05/21/03 05:28 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: jacksonm99]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
LOL Okay now stop making fun. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />You know if you hint at something Josh is going to do it.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#247142 - 05/21/03 12:25 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Zackary Offline
Member

Registered: 03/01/01
Posts: 652
Loc: West Fargo, ND USA
Nice Josh. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Kinda wish I'd had something like this a few months back when I started making my EQ roster addon for threads. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />I made it through though, and I must say, I'll use this template as I start to convert the rest of my site to a "Threads style" format. <img src="/forum/images/graemlins/grin.gif" alt="" /><br /><br />No sense in reinventing the wheel. <img src="/forum/images/graemlins/laugh.gif" alt="" />

Top
#247143 - 05/21/03 11:34 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: ]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Is the download in the first post the latest code? <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#247144 - 05/22/03 12:33 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: ]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
The first post is the untemplated version - the next post where I attached the file - is a templated version. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />But I link to the templated version in my first post as well. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />For some simple pages - I'm fine without the template - but for more advanced stuff - it's definately nice, and more consistant with threads. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247145 - 05/22/03 01:01 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
great work on both <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#247146 - 05/22/03 05:40 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: SurfMinister]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Just a thought <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Why not add in $user = $userob -> authenticate("U_Groups"); or even the full range for those who use groups, or or other items, so that threads features and benefits flowed through.<br /><br />Great work, and thanks for sharing the mods. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#247147 - 07/06/03 01:52 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Gorlum]
Calimerion Offline
Newbie

Registered: 07/03/03
Posts: 11
Hello everyone, <br /> <br />I was able to use the generic page. Works really great! <br /> <br />Im running into a little issue though and I do have no idea what may cause that one. <br /> <br />When running the page with my php in it and being already at the forum and going to the link ( This Link ), then everything is ok. <br /> <br />However when not already browsing at the forum and opening the link at a fresh browser window, then I do get the following error message (page displays below the errro fine though - suppose he somehow tries to send the header twice): <br />
Code:
Warning: Cannot add header information - headers already sent by (output started at /home/www/web17/html/dclan/swguser/memberlist/memberlist.php:3) in /home/www/web17/html/dclan/ubbthreads/ubbt.inc.php on line 1749
<br /> <br />In addition I do only get the error message when being looged in (cookies). When accessing the link in a fresh browser without being logged in, the error message does not display. <br /> <br /> <br />Uh. Does anyone have an idea where that might come from? Im left a little clueless. We are running on version 6.3 <br /> <br /> <br />Thanks in advance, <br />Robert

Top
#247148 - 07/06/03 03:56 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
usually header already sent errors are extra spaces after the PHP closing tag ?> at the end of the file. make sure there's nothing after that closing tag. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247149 - 07/06/03 04:16 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Calimerion Offline
Newbie

Registered: 07/03/03
Posts: 11
Thanks a lot Josh. With your guidiance I was able to spot was has been wrong. I have added style information at the most top of the page. Putting them into the "add your content here" section did the trick.<br /><br />Thanks again!

Top
#247150 - 07/26/03 11:02 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
I would think that this wouldn't be very easy to do but I will throw it out there anyway. Is there a way to show that a users is looking at this page from the "Who's Online" page?

Top
#247151 - 07/26/03 11:11 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: BlarC]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Actually, it's very easy. If the file is named foobar.php, edit languages/english/online.php and add <br /> <br />
Code:
$ubbt_lang['foobar'] = "Viewing the Foo Bar page";
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#247152 - 07/26/03 11:35 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: joeuser]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Thanks Dave, can you give me an idea of where to put it? I don't really see a pattern. TIA.

Top
#247153 - 07/26/03 11:52 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: BlarC]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
You can add it anywhere. I've been adding that stuff at the end of the file, just before the closing bracket:<br /><br />
Code:
$ubbt_lang['foobar'] = "Viewing the Foo Bar page";<br />?&gt;
<br /><br />Make a backup of the file before you change it, and be careful not to add any whitespace after the ?>.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#247154 - 07/26/03 12:21 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: joeuser]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Thanks <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#247155 - 08/11/03 06:44 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: BlarC]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
Hola! I've got a couple questions about this now!<br /><br />I've used this for a couple of the main pages on my site, and when I close the forums for maintenance or something, those pages then get closed as well... <br /><br />Is there a way to add a config option to keep these pages working while the board is closed? Any help would be muchly appreciated!<br /><br />-peter

Top
#247156 - 08/11/03 07:33 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: adrienne48]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Before the send_header function in those pages - try adding this:<br /><br /><br />$config['isclosed'] = 0;<br /><br /><br />I *think* that'll override it. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247157 - 08/11/03 08:22 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Allusivekudos Offline
Junior Member

Registered: 05/26/02
Posts: 378
Loc: Na
thanks josh, I'll try that!

Top
#247158 - 10/15/03 07:16 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Kordegnen Offline
Member

Registered: 04/23/01
Posts: 184
Loc: Denmark, the country vith all ...
hmm<br /><br />i got a little error ??<br /><br />see it here, something vith the table colors ??<br /><br />http://www.4701.dk/ubbthreads/pigelisten.php<br /><br />any ideas what i did wrong ??<br /><br />
Code:
 &lt;?<br />// Generic UBB.Threads page by Joshua Pettit<br />// aka JoshPet of www.joshuapettit.com <br />// UBB.Threads Elements ©Infopop.com and Rick Baker<br /><br />// Variables - Edit these As Needed<br /><br />// What is the title of the page:<br />	$pagetitle = "Pigelisten";<br />	<br />// What is the PATH (not URL) to your threads install?<br />// You'll find this in your threads config file<br />// Do not include trailing slash<br />	$threadspath = "/usr/local/www/sites/4701.dk/httpdocs/ubbthreads";<br /><br /><br /><br />// DO NOT EDIT THIS SECTION<br />// Require the library<br />   require ("$threadspath/main.inc.php");<br /><br />   $userob = new user;<br />   $user = $userob -&gt; authenticate();<br /><br /><br />   $html = new html;<br />   $html -&gt; send_header($pagetitle,$Cat,0,$user);<br /><br />// ---------------------<br />// Grab the tablewrapper<br />   list($tbopen,$tbclose) = $html -&gt; table_wrapper();<br /><br />// Now let's draw the table<br />	echo "$tbopen";<br />	<br />// Now let's create a header with the page title in it<br />	echo "&lt;tr&gt;&lt;td class=\"tdheader\"&gt;$pagetitle&lt;/td&gt;&lt;/tr&gt;";<br />	<br />// Now let's open the next table cell for the body of your page:<br />	echo "&lt;tr&gt;&lt;td class=\"lighttable\"&gt;";<br />	<br /><br /><br /><br />// The rest of the page<br />// YOU CAN EDIT THIS SECTION<br /><br />// Put the HTML of your page below this<br /><br /><br /><br /><br />echo &lt;&lt;&lt;PAGEHTML<br /><br /><br />&lt;tr&gt;<br />    &lt;td&gt;&lt;b&gt;Gudinde Navn&lt;/b&gt;&lt;/td&gt;<br />    &lt;td&gt;&lt;b&gt;Gudindens hjemmeside&lt;/b&gt;&lt;/td&gt;<br />	&lt;/tr&gt;<br /> <br /><br /><br /><br />PAGEHTML;<br />$database = mysql_connect("localhost", "xxx", "xxxx");<br />if (!$database) die ('Kunne ikke forbinde til databasen');<br /> mysql_select_db("ubb",$database);<br />mysql_select_db("ubb",$database) or die('Kunne ikke vćlge database');<br /> $foresp = mysql_query("SELECT U_Number,U_Title,U_Username,U_Email,U_Homepage,U_Approved, U_Groups FROM w3t_Users <br /> 	WHERE   U_Groups = '-6-'<br /> ORDER BY U_Username");<br />if (!$foresp) die (mysql_error()); <br />print mysql_num_rows($foresp)." fundet&lt;BR&gt;&lt;BR&gt;";<br />while ($data = mysql_fetch_array($foresp)) {<br />        <br />		echo "&lt;tr&gt;&lt;td&gt;$data[2]&lt;/td&gt;";<br />		echo "&lt;TD&gt;&lt;A href= http://".$data[4]."&gt;".$data[4]."&lt;/A&gt;&lt;/TD&gt;";<br />        echo "&lt;/tr&gt;";<br />		<br />   }<br />// DO NOT EDIT BELOW THIS LINE<br /><br />// Close out the table<br />	echo "&lt;/td&gt;&lt;/tr&gt;$tbclose";		<br /><br />// Send the footer<br />  $html -&gt; send_footer();<br />?&gt; 

Top
#247159 - 10/15/03 11:19 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: shame4me]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
You need to assign the class either "lighttable" or "darktable" to each <td> cell. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247160 - 10/15/03 09:50 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
RandyJG Offline
Junior Member

Registered: 03/11/03
Posts: 231
Loc: Canada
I made an attempt at making a generic page that uses the specific forum's header/footer/style that I wanted. Instead of the default header, this grabs the header/footer/stylesheet for a sepecific forum before calling send_header. This is used if the page was associated with a specific forum, that had it's own look and header for example. <br /> <br />Note: This works on 6.2, not tested on 6.3. This will use the header/footer/stylesheet options for a specific forum. If a user is not using the default style, the page will have the user's selected style. <br />Directions. <br /> <br />I'm assuming the generic.php for the template version is being used. It has to appear between the authenticate() and send_header() basically. <br /> <br />[/code] <br /> <br />Find: <br /> <br />$user = $userob -> authenticate(); <br /> <br />Add the following under this, changing 'MyBoard' to the forum's keyword the page should look like: <br /> <br />// ------ START Generic Page with forum look ------ <br /> <br /> $Board = "MyBoard"; //** Set to the keyword for the forum's style/header to use <br /> <br />// ------------------ <br />// Get the board info <br /> $Board_q = addslashes($Board); <br /> $query = " <br /> SELECT Bo_Title,Bo_HTML,Bo_Markup,Bo_SpecialHeader,Bo_StyleSheet <br /> FROM {$config['tbprefix']}Boards <br /> WHERE Bo_Keyword = '$Board_q' <br /> $groupquery <br /> "; <br /> $sth = $dbh -> do_query($query); <br /> <br />// ---------------- <br />// Assign the stuff <br /> list($Title,$HTML,$Markup,$fheader,$fstyle) = $dbh -> fetch_array($sth); <br /> $dbh -> finish_sth($sth); <br /> <br />// ------------------------------------------------- <br />// Here we need to figure out what stylesheet to use <br /> $mystyle = ""; <br /> isset($user['U_StyleSheet']) && $mystyle = $user['U_StyleSheet']; <br /> if (!$mystyle) { $mystyle = "usedefault"; } <br /> if ($mystyle == "usedefault") { <br /> $mystyle = $fstyle; <br /> if ($mystyle == "usedefault") { <br /> $mystyle = $theme['stylesheet']; <br /> } <br /> } <br /> $fstyle = $mystyle; <br /> // fstyle will now be set when used by send_header <br />// ------ END Generic Page with forum look ------ <br />[/code]


Edited by RandyJG (10/15/03 10:13 PM)

Top
#247161 - 12/20/03 08:49 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: romka]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
thought I would add that this creates an issue in 6.4..<br /><br />throws an error<br /><br />Notice: Undefined variable: config in /your/path/to/ubbthreads/ubbt.inc.php on line 931
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247162 - 12/20/03 08:57 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
dman_dup1 Offline
Journeyman

Registered: 01/14/03
Posts: 144
I didn't have a problem on my 6.4b1 board using this. I have sinced switched to the templated one though.

Top
#247163 - 12/20/03 09:28 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hmmm... shouldn't be any problem. We're using it here and at other sites for various purposes. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />It's really just a send_header and a send_footer. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247164 - 12/20/03 09:41 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
actually didn't matter if admin or non.. what fixed my problem was using a temp variable for the $config array ala $threadsconfig=$config and then before the footer changing it back because the php script I was including inside actually changed the $config array to its own...
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247165 - 02/11/04 09:25 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Quick question, this may already be part of the Generic Page.<br /><br />Does the Menubar up top appear when using the Generic Page? (ie Welcome Medar...Main Index, Entrance, Search, etc).

Top
#247166 - 02/11/04 09:48 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247167 - 02/11/04 10:07 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Thanks Josh <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#247168 - 02/11/04 01:24 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
also heres a hint. If your including a program in this page ala require you may wanna change the $config= to anything else see mine a few pages back because if there is a $config in that program it will not work as intended..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247169 - 02/11/04 02:26 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Will do - I had a number of old Generic Pages, but I think they are versions long before this one (they do not have the Menu information on em...but the recent version does).<br /><br />I had modified them to work with the current setup, but taking this Generic Page version and changing the one or two variables worked fine for me. No issues at all.

Top
#247170 - 02/28/04 01:40 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
McP485 Offline
Lurker

Registered: 01/17/04
Posts: 1
I'm having trouble getting this to work for me. It always says I'm not logged in. I think it is cookie-related, but I'm not a huge threads expert or anything.<br /><br />We have threads running on bbs.blahblahblah.com and the generic page on blahblahblah.com -- both share the same file system, so I can use require(), but threads and the main site essentially run on two separate servers. Do I need to move threads over to the main site, or is there some change I can make to get this to work?<br /><br />I hope that made a little sense...

Top
#247171 - 02/28/04 02:23 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: bafner]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well the cookie would be domain specific - so the cookie would only work on bbs.blahblahblah.com (note that bbs.blahblahblah.com and www.blahblahblah.com are different domains from a cookie standpoint). You'll probably have to put this inside of your threads directory for it to work if you are using a subdomain like that. Or do some deeper modification to get the cookies to work domain wide. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247172 - 03/19/04 08:47 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Here is an odd one. I am integrating another script that shares the same MySQL DB as Threads...and am using the above Generic Threads page as a "wrapper".<br /><br />I am getting the following error:<br /><br />Fatal error: Call to a member function on a non-object in /home/medar/public_html/ubbt.inc.php on line 1779<br /><br />Which is this section, with line 1779 bolded:<br />[] // -----------------------------------------------------------------<br /> // We are automatically adding StyleSheet, Status, Privates and<br /> // FrontPage and Number to each SQL call because this information is needed by<br /> // every script that makes a call to authenticate<br /> if ($Query != "*") {<br /> if ($Query) { $Query .=","; }<br /> $Query .= "U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned";<br /> }<br /> $Uid = addslashes(${$config['cookieprefix']."w3t_myid"});<br /><br /> $query = "SELECT $Query FROM {$config['tbprefix']}Users WHERE U_Number = '$Uid'";<br /> $sth = $dbh -> do_query($query);<br /> $thisuser = $dbh -> fetch_array($sth);<br /> $dbh -> finish_sth($query);[/]<br /><br />Any idea what would cause that? Thanks in advance!

Top
#247173 - 03/19/04 09:08 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
debug it by putting some odd characters here<br /><br />[]<br /> $query = "SELECT $Query FROM {$config['tbprefix']}Users WHERE U_Number = '$Uid' <insert odd charceter>";<br />[/]<br /><br />then look at the select that is trying to pass.. if it doesn't look like a good formatted select then it may cause this error. Also $Query == $query on some servers so I would advise to use something else for the $Query something like $Myquery instead of the $Query
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247174 - 03/31/04 03:27 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
swebs_dup1 Offline
Lurker

Registered: 03/31/04
Posts: 8
Any quick way to find what forumns/groups the user has access to. I only want certain users that have access to a specific group to be able to see this page I'm making.

Top
#247175 - 04/24/04 12:57 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Calimerion Offline
Newbie

Registered: 07/03/03
Posts: 11
Since upgrading from 6.4.1 to 6.4.2, we seem to have some issues with the user variables somehow. <br /> <br />We do the following. At top of the generic page: <br /> <br /> $userob = new user; <br /> $user = $userob -> authenticate("U_Groups"); <br /> <br />At the page itself for a search function: <br /> <br /> $variable = $user['U_Username']; <br /> <br /> <br />Somehow the search does not work anymore and so far I can't seem to locate what may cause the issue here. <br /> <br /> <br />Thank you a lot for any possible hint. <br /> <br /> <br />Best greetings, <br />Robert <br /> <br />Edit: <br />No solution, but the cause of the problem is "register globals off". Turning it to on for testing made it making work again (same as the link database). After turning it to on though it stopped working off course again :-)


Edited by Calimerion (04/24/04 02:16 PM)

Top
#247176 - 04/24/04 10:16 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm only issues I ever found was that sometimes the scripts I used to call from it had the same config command so I had to change threads config to config_threads and at the end change it back..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247177 - 04/25/04 09:05 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* I want to integrate my whole site into my threads setup, but the task of creating a .php and .tmpl for each of the hundreds of pages in my site is daunting. I tried to make a generic page with a frameset in it to call my sites pages into the frame, but framesets and frames don't seem to work inside the generic.tmpl page. Any thoughts? =/

Top
#247178 - 05/21/04 01:09 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Webstrong]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You shouldn't have to create a .tmpl page, just name the generic.php file anything.php you want and set the $threadspath correctly.
_________________________
- Allen wavey
- What Drives You?

Top
#247179 - 05/22/04 03:26 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: SurfMinister]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
The only reason you really need the .tmpl version is if these will be in your threads directory and you want to be able to edit them from your Threads control panel. Though since you're talking about your whole site, you don't need the templated version. Just copy and past all the code from each .html file into the indicated area in the generic.php file and rename it to whatever you want. And as Allen said, set $threadspath correctly.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#247180 - 07/10/04 03:50 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: SurfMinister]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* WHen you say "set the threadspath correctly", what is correctly? For example, the current threadspath is /home/value/public_html/ubbthreads right now. If I just put the desired code into the webpage.php page, and wanted to skip using a template, what would I change that threadspath to? =/

Top
#247181 - 07/10/04 10:42 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Webstrong]
Twisty Offline
Code Monkey

Registered: 09/26/03
Posts: 524
You would use your current threads path for all generic pages + the forum. It's a universal setting basically, and for all intents and purposes wouldn't need changing unless you moved to a new host.
_________________________
Twisty []http://www.mameworld.info/misc/nana2.gif[/]
MAMEWorld

Top
Page 1 of 3 1 2 3 >



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks